![]() |
YNQ
YNQ-1.5.0
|
Functions | |
| NQ_INT | csAddShareA (const NQ_CHAR *name, const NQ_CHAR *path, NQ_BOOL printQueue, const NQ_CHAR *comment, const NQ_CHAR *reserved) |
| NQ_INT | csAddShare (const NQ_WCHAR *name, const NQ_WCHAR *path, NQ_BOOL printQueue, const NQ_WCHAR *comment, const NQ_CHAR *reserved) |
| NQ_INT | csRemoveShareA (const NQ_CHAR *name) |
| NQ_INT | csRemoveShare (const NQ_WCHAR *name) |
| NQ_INT | csSetShareEncryptionA (const NQ_CHAR *name, NQ_BOOL isEncrypted) |
| NQ_INT | csSetShareEncryption (const NQ_WCHAR *name, NQ_BOOL isEncrypted) |
| NQ_INT csAddShareA | ( | const NQ_CHAR * | name, |
| const NQ_CHAR * | path, | ||
| NQ_BOOL | printQueue, | ||
| const NQ_CHAR * | comment, | ||
| const NQ_CHAR * | reserved | ||
| ) |
This function adds another share to NQ Server.
| name | Name for new share. This name must not contain the '$' character. |
| path | Local path to the share root. |
| printQueue | FALSE for file system, TRUE for print queue. |
| comment | Share description as a free text. |
| reserved | For future use. This value is currently ignored and may be any, including NULL. |
| value | meaning |
|---|---|
| 0 | Success |
| -1 | the DB was not initialized |
| -2 | parameter error (string too long) |
| -3 | share table full |
| -6 | share already exists |
| NQ_INT csAddShare | ( | const NQ_WCHAR * | name, |
| const NQ_WCHAR * | path, | ||
| NQ_BOOL | printQueue, | ||
| const NQ_WCHAR * | comment, | ||
| const NQ_CHAR * | reserved | ||
| ) |
This function adds another share to NQ Server. Parameters
| name | Name for new share. This name must not contain the '$' character. |
| path | Local path to the share root. |
| printQueue | FALSE for file system, TRUE for print queue. |
| comment | Share description as a free text. |
| reserved | For future use. This value is currently ignored and may be any, including NULL. |
| value | meaning |
|---|---|
| 0 | Success |
| -1 | the DB was not initialized |
| -2 | parameter error (string too long) |
| -3 | share table full |
| -6 | share already exists |
This function removes an existing share from NQ Server.
| name | Name for the share to remove. This name must not contain the '$' character. |
| value | meaning |
|---|---|
| 0 | Success |
| -1 | NQ Server was not initialized |
| -2 | parameter error (share not found) |
This function removes an existing share from NQ Server.
| name | Name for the share to remove. This name must not contain the '$' character. |
| value | meaning |
|---|---|
| 0 | Success |
| -1 | NQ Server was not initialized |
| -2 | parameter error (share not found) |
This function enables or disables encryption for a particular share. An encrypted share may be only accessed over SMB3.0.
This function is applicable to any share regardless of way it was created. When called with NULL share name parameter global encryption is applied.
| name | Share name or NULL. |
| isEncrypted | TRUE to enable encryption, FALSE to disable encryption. NQ does not consider the previous encryption status. |
| value | meaning |
|---|---|
| 0 | Success |
| -1 | NQ Server was not initialized |
| -2 | parameter error (share not found) |
This function enables or disables encryption for a particular share. An encrypted share may be only accessed over SMB3.0.
This function is applicable to any share regardless of way it was created. When called with NULL share name parameter global encryption is applied.
| name | Share name or NULL. |
| isEncrypted | TRUE to enable encryption, FALSE to disable encryption. NQ does not consider the previous encryption status. |
| value | meaning |
|---|---|
| 0 | Success |
| -1 | NQ Server was not initialized |
| -2 | parameter error (share not found) |